<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小飞象-会员中心-基本资料</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_810097_mgs6xzz1oj.css">
    <link rel="stylesheet" href="../css/common/reset.css">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../../css/reset-layui.css">
    <link rel="stylesheet" href="../css/header.css">
    <link rel="stylesheet" href="../css/common/nav.css">
    <link rel="stylesheet" href="../css/common/aside.css">
    <link rel="stylesheet" href="../css/common/content.css">
    <link rel="stylesheet" href="../css/capital.css">
</head>

<body>
    <header>
        <div class="wrapper">
            <div class="clearfix headerBox">
                <h1 class="fl logo">
                    <a href="">小飞象</a>
                </h1>
                <!-- <div class="fl alipayName">支付宝充值账号: <b class="redColor">156****8656</b>开户人: <b class="redColor">陈小窝</b></div> -->
                <div class="fr logOut">退出</div>
                <div class="fr userName"></div>
            </div>
        </div>
    </header>
    <div class="mhNav">
        <ul class="navMenuBox">
            <li>
                <a href="../index.html" class="active">
                    飞象首页
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    会员中心
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="../member/basicInfo.html">基本资料</a>
                    </li>
                    <li>
                        <a href="../member/storeMage.html">店铺管理</a>
                    </li>
                    <li>
                        <a href="../member/readjustNum.html">调整单量</a>
                    </li>
                    <li>
                        <a href="/goodsMage.html">商品管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    计划管理
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="../plan/newPlan.html">新建计划</a>
                    </li>
                    <li>
                        <a href="../plan/planMage.html">计划管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    订单管理
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="../order/orderMage.html">订单管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    资金管理
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="inAccout.html">账号充值</a>
                    </li>
                    <li>
                        <a href="transferMage.html">转账管理</a>
                    </li>
                    <li>
                        <a href="orderMage/dailyTaskDes.html">订单信息</a>
                    </li>
                    <li>
                        <a href="expressForm.html">获取快递底单</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="">在线客服</a>
            </li>
        </ul>
    </div>
    <div class="clearfix wrapper mainBomContent">
        <div class="asideMenu">
            <h2 class="title">
                <i class="iconfont icon--"></i> 资金管理
            </h2>
            <ul>
                <li class="active">
                    <a href="inAccout.html">账号充值</a>
                </li>
                <li>
                    <a href="transferMage.html">转账管理</a>
                </li>
                <li>
                    <a href="orderMage/dailyTaskDes.html">订单信息</a>
                </li>
                <li>
                    <a href="expressForm.html">获取快递底单</a>
                </li>
            </ul>
        </div>
        <div class="rightContent">
            <div class="accountView">
                <h2>充值说明</h2>
                <div class="accountDes">
                    <p> 1、充值程序异常，所有充值都<b class="redColor">无法自动到账</b>。请卖家使用支付宝转账后，回到平台进行充值；</p>
                    <p> 2、企业支付宝转账后<b class="redColor">无法自动到账</b>，请勿使用</p>
                </div>
                <h2>支付宝充值</h2>
                <form class="layui-form alipay">
                    <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">账户余额：</label>
                        <div class="layui-input-block">
                            <input type="text" name="" autocomplete="off" class="layui-input" id="totalAssets">
                        </div>
                    </div>
                    <!-- <div class="layui-form-item">
                        <label class="layui-form-label">转账备注：</label>
                        <div class="layui-input-block">
                            <input type="text" name="" autocomplete="off" class="layui-input">
                        </div>
                    </div> -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值方式：</label>
                        <div class="layui-input-block" style="line-height:36px;">
                            <input type="hidden" name="" autocomplete="off" class="layui-input" value="1">支付宝充值
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付码：</label>
                        <div class="layui-input-block">
                            <!-- <div class="accoutInfoCard">
                                <h3>支付宝转账账户</h3>
                                <p class="redColor">15361664315</p>
                                <p class="name">开户人：陈钊</p>
                            </div> -->
                            <img src="../images/code.png" alt="" class="code">
                        </div>
                    </div>
                </form>
                <div class="noSuccess">
                    <div class="fl">
                        <i class="iconfont"></i>
                    </div>
                    <div class="fl">
                        <h3>充值未到账？</h3>
                        <p>转账后请务必回到此页面进行手动充值，否则无法到帐</p>
                    </div>
                    <div class="fl">
                        <a href="javascript:void:;" class="handsPay" id="handsPay">手动充值</a>
                    </div>
                </div>
                <h2 style="margin-top:35px;">支付宝充值流程<i class="iconfont"></i></h2>
            </div>
        </div>
    </div>
    <script src="../js/jquery.min.js"></script>
    <script src="../js/jquery.cookie.js"></script>
    <script src="../layui/layui.js"></script>
    <script>
        $(".mhNav .navMenuBox > li > a").click(function (event) {
            if ($(this).siblings('ul').is(':visible')) {
                $(this).siblings('ul').stop(true, true).slideUp();
                $(this).removeClass('active')
            } else {
                $(this).siblings('ul').stop(true, true).slideDown().parents('li').siblings().find('ul').stop(true, true).slideUp();
                $(this).addClass('active').parents('li').siblings().find('a').removeClass('active');
            }
        });
    </script>
    <script>
        $(document).ready(function () {
            $("input").attr("readonly", true);
            $("textarea").attr("readOnly", true);
        });
        var mid = $.cookie("id");
        var totalAssets = $.cookie("totalAssets");
        $.ajax({
            type: "get",
            url: "http://47.92.174.143:8888/v1/client/merchants/" + mid,
            dataType: 'json',
            success: function (data) {
                console.log("请求数据为", data.data)
                $.cookie("totalAssets", data.data.totalAssets)
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
            }
        });
        layui.use(['layer', 'form'], function () {
            var layer = layui.layer
                , form = layui.form;
            var totalAssets = $.cookie("totalAssets");
            $("#totalAssets").val(totalAssets);
            $("#handsPay").on("click", function () {
                layer.open({
                    type: 2 //此处以iframe举例
                    , title: '手动充值'
                    , area: ['500px', '247px']
                    , shadeClose: true //开启遮罩关闭
                    , offset: 'auto'
                    , resize: false
                    , scrollbar: false
                    , maxmin: false
                    , content: ['accout/handsAccout.html', 'no']
                    , btn2: function () {
                        layer.closeAll();
                    }
                    , zIndex: layer.zIndex //重点1
                });
            });
        });
        $.ajax({
            type: "get",
            url: "http://47.92.174.143:8888/v1/client/merchants/" + mid,
            dataType: 'json',
            success: function (data) {
                // console.log("请求数据为", data.data)
                // 存储总额
                if (data.data == null || !data.data) {
                    layer.msg('数据出错,请重新登录', {
                        icon: 5,
                        time: 6000,
                        end: function () {
                            location.href = '/login.html';
                        }
                    });
                } else {
                    $(".userName").html(data.data.loginId);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) { }
        });
    </script>
</body>

</html>